package com.geek.spring.boot.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 属性配置，可控制相关行为
 */
@ConfigurationProperties(prefix = "my.springboot", ignoreUnknownFields = true)
public class MySpringBootProperties {
    /**
     * 是否启用，默认为启用
     */
    private Boolean enabled = true;

    /**
     * 日志消息文案，默认为Hello World!
     */
    private String msg = "Hello World!";

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
